From: Chris Lamb Date: Mon, 20 Jul 2026 17:47:02 +0000 (+0000) Subject: Make afm and pfb timezone-independent X-Git-Tag: archive/raspbian/1%20251009+git20260808_dfsg-2+rpi1^2~3 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=37b59fcd75ae75cc61af6142fc5fbd72429f96d4;p=fontforge.git Make afm and pfb timezone-independent Gbp-Pq: Name 0005-afm-and-pfb-timezone-independent.patch --- diff --git a/fontforge/dumppfa.c b/fontforge/dumppfa.c index 59e6647..2ed129b 100644 --- a/fontforge/dumppfa.c +++ b/fontforge/dumppfa.c @@ -1781,7 +1781,7 @@ static void dumpfontcomments(void (*dumpchar)(int ch,void *data), void *data, dumpf(dumpchar,data,"%%%%Title: %s\n", sf->fontname); dumpf(dumpchar,data,"%%Version: %s\n", sf->version); } - dumpf(dumpchar,data,"%%%%CreationDate: %s", ctime(&now)); + dumpf(dumpchar,data,"%%%%CreationDate: %s", asctime(gmtime(&now))); if ( author!=NULL ) dumpf(dumpchar,data,"%%%%Creator: %s\n", author); diff --git a/fontforge/splinesaveafm.c b/fontforge/splinesaveafm.c index 446faa7..463533e 100644 --- a/fontforge/splinesaveafm.c +++ b/fontforge/splinesaveafm.c @@ -1176,7 +1176,7 @@ static void AfmSplineFontHeader(FILE *afm, SplineFont *sf, int formattype, "StartFontMetrics 2.0\n" ); fprintf( afm, "Comment Generated by FontForge %s\n", FONTFORGE_VERSION ); now = GetTime(); - fprintf(afm,"Comment Creation Date: %s", ctime(&now)); + fprintf(afm,"Comment Creation Date: %s", asctime(gmtime(&now))); fprintf( afm, "FontName %s\n", sf->fontname ); if ( sf->fullname!=NULL ) fprintf( afm, "FullName %s\n", sf->fullname ); if ( sf->familyname!=NULL ) fprintf( afm, "FamilyName %s\n", sf->familyname );